import React from 'react'

import Home from "../components/home/home.js";
import Login from "../components/login/login.js";
// 张乔
import Books from '../components/books/books.jsx';
import Bookcity from "../components/bookcity/bookcity.js";
import BooksScan from '../components/books/books_scan.jsx';
// 崔程堃
import Type from '../components/type/index.js'
import Tingshu from '../components/tingshu/tingshu.js'
// 张九硕-成宽
import BooksSchema from '../components/books/booksSchema.jsx'
import Classification from "../components/classification/classification.js";
import Bookshelf from "../components/bookshelf/bookshelf.js";

import ContentIn from '../components/book_city-dev/Content Introduction/ci.js'
import Directory from '../components/book_city-dev/directory/directory.js';
import Review from '../components/book_city-dev/review/review.js';
import Allreview from '../components/book_city-dev/allreview/allreview.js';
import Reviewdetail from '../components/book_city-dev/reviewdetail/reviewdetail.js';
import Reads from '../components/book_city-dev/read/read.js';
import Listening from '../components/book_city-dev/listening/listening.js';
import ListenReplay from '../components/book_city-dev/listening_replay/listening_replay.js'
import Bookusers from '../components/book_city-dev/bookusers/bookusers.js'
import Chat from '../components/book_city-dev/chat/chat.js'

import My from "../components/my/my.js";
import { Navigate } from 'react-router-dom';
// import Books from '../components/bookcity/books/Books.js';


import Feedback from '../components/my/Feedback/Feedback.js';
import SetSystem from '../components/my/SystemSet/SetSystem.js';
import Message from '../components/my/Message/message.js';
import Footprint from '../components/my/footprint/footprint.js';
import Preference from '../components/my/preference/preference.js';
import Privacy from '../components/my/SystemSet/privacy/privacy.js';
import Safe from '../components/my/SystemSet/safe/safe.js'
import Notice from '../components/my/SystemSet/notice/notice.js'
import Read from '../components/my/SystemSet/Read/Read.js'
import Aboutus from '../components/my/SystemSet/AboutUs/aboutus.js'
import Policy from '../components/my/SystemSet/AboutUs/policy/policy.js';
import Books_city from '../components/bookcity/books/Books.js';
<<<<<<< HEAD
import GenerateQR from '../components/generateQR/generateQR.jsx';
=======
import BooksSchema from "../components/books/booksSchema";
import Feedback from "../components/my/Feedback/Feedback";
import SetSystem from "../components/my/SystemSet/SetSystem";
import Message from "../components/my/Message/message";
import Footprint from "../components/my/footprint/footprint";
import Preference from "../components/my/preference/preference";
import Privacy from "../components/my/SystemSet/privacy/privacy";
import Safe from "../components/my/SystemSet/safe/safe";
import Notice from "../components/my/SystemSet/notice/notice";
import Read from "../components/my/SystemSet/Read/Read";
import Aboutus from "../components/my/SystemSet/AboutUs/aboutus";
import Policy from "../components/my/SystemSet/AboutUs/policy/policy";
import Detail from "../components/book_city-dev/detail/detail";
import LabelSelect from "../components/login/labelSelect";
import StartPage from "../components/login/startPage";
>>>>>>> login_dev


const RouterMap =
    [
        {
            path: '/',
            element: <Navigate to="/start_page" />
        },
        {
            path: '/login',
            element: <Login />,
            meta:{
                title:'登录页面'
            }
        },
        {
            path: '/start_page',
            element: <StartPage/>,
            meta:{
                title:'启动页'
            }
        },
        {
            path: '/label_select',
            element: <LabelSelect/>,
            meta:{
                title:'标签选择'
            }
        },
        {
            path: '/home',
            element: <Home />,
            // auth: 1 //1为需要token 无该属性值为不需要token
            children: [
                {
                    path: '/home',
                    element: <Navigate to="/home/bookcity" />,
                },
                {
                    path: '/home/bookcity',
                    element: <Bookcity />,
                },
                {
                    path: '/home/classification',
                    element: <Classification />,
                },
                {
                    path: '/home/bookshelf',
                    element: <Bookshelf />,
                },
                {
                    path: '/home/my',
                    element: <My />,
                },
            ]
        },
        {
            path:'/type',
            element: < Type/>
        },
        {
            path:'/tingshu',
            element: < Tingshu />
        },
        {
            path: '/login',
            element: <Login />,
        },
        {
            path: '/books',
            element: <Books />,
        },
        {
            path:'/booksSchema',
            element:<BooksSchema />
        },
        {
            path:'/booksScan',
            element:<BooksScan />
        },
        {
            path:'/generateQR',
            element:<GenerateQR />
        },
        {
            path: '/Feedback',
            element: <Feedback />
        },
        {
            path: '/SystemSet',
            element: <SetSystem />
        },
        {
            path: '/message',
            element: <Message />
        },
        {
            path: '/footprint',
            element: <Footprint />
        },
        {
            path: '/preference',
            element: <Preference />
        },
        {
            path: '/privacy',
            element: <Privacy />
        },
        {
            path: '/safe',
            element: <Safe />
        },
        {
            path: '/notice',
            element: <Notice />
        },
        {
            path: '/read',
            element: <Read />
        },
        {
            path:'/aboutus',
            element:<Aboutus/>
        },
        {
            path:'/policy',
            element:<Policy/>
        },
    ]

export default RouterMap
